<template>
  <div>
    <div>
      <Input label="账号" ref="username" />
    </div>
    <div>
       <Input label="密码" ref="password" />
    </div>
    <div>
      <button @click="dologin">进入系统</button>
    </div>
  </div>
</template>

<script>
import Input from './ui/Input.vue'
export default {
  components: {
    Input
  },
  methods: {
    dologin() {
      let username = this.$refs.username.value.trim()
      let password = this.$refs.password.value.trim()
      console.log(username, password)
    }
  }
}
</script>

<style lang="scss" scoped></style>
